<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0041)http://www.vincentcheung.ca/jsencryption/ -->
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>JavaScript Encryption and Decryption</title>
    <meta name="keywords" content="javascript, encryption, decryption, encrypt, decrypt" />
    <script type="text/javascript" src="./jsencryption.js"></script>
    <script type="text/javascript" src="./jsencryptionform.js"></script>
  </head>
	
<body onload="load()">

<table cellpadding="0" cellspacing="10" border="0" width="100%">
<tr><td colspan="2">
<form name="key" action="http://www.vincentcheung.ca/jsencryption/#" onsubmit="return false;">
      Key: 
      <input type="text" name="text" id="passwordText" maxlength="1024"  style="width: 500px;"/>
      <input type="button" value=" Clear " onclick="document.key.text.value = '';" />
      <input type="button" value=" Select " onclick="document.key.text.select();" />
</form></td>
</tr><tr>
<td><form name="plain" action="http://www.vincentcheung.ca/jsencryption/#" onsubmit="return false;">
      Plain Text<br/>
      <textarea name="text" id="plainText" rows="10" style="width:100%"></textarea>
      <br/>
      <input type="button" name="encrypt" value=" Encrypt " onclick="encryptFormText();" />
      <input type="button" value=" Clear " onclick="document.plain.text.value = '';" />
      <input type="button" value=" Select " onclick="document.plain.text.select();" />
</form>
</td>
</tr><tr>
<td>
<form name="cipher" action="http://www.vincentcheung.ca/jsencryption/#" onsubmit="return false;">
      Cipher Text<br/>
      <textarea name="text" id="cipherText" rows="5" style="width:100%"></textarea>
      <br/>
      <input type="button" name="decrypt" value=" Decrypt " onclick="decryptFormText();" />
      <input type="button" value=" Clear " onclick="document.cipher.text.value = '';" />
      <input type="button" value=" Select " onclick="document.cipher.text.select();" />
</form>
</td>
</tr>
<tr><td>
<form name="encryptedCode" action="http://www.vincentcheung.ca/jsencryption/#" onsubmit="return false;">
      HTML Code: 
      <input type="radio" name="codeType" value="hide" checked="checked" onclick="genSampleCode();" /> Standard
      <input type="radio" name="codeType" value="show" onclick="genSampleCode();" /> Inline
      <input type="radio" name="codeType" value="show" onclick="genSampleCode();" /> ***
      <textarea name="text" id="codeText" rows="4" readonly="readonly" onclick="this.focus();
          this.select();" style="width:100%"></textarea>
      <br/>
</form></td>
</tr><tr><td>
HTML Test:<br/> 
<div id="encryptedTest">&nbsp;</div> 
</td>
</tr>
</table>

</body>

</html>
